/**
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"B9FED0BE-92CD-42F0-B446-2A36EEC61B03"}
 * @AllowToRunInFind
 */
function onLoad(event) {
	controller.find()
	solucion_id = globals.gIdSolucion
	usuario_id	= globals.gUsuarioID
	visible		= 1
	controller.search()
	controller.sort('nrogrupo asc')
}

/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @properties={typeid:24,uuid:"39F62ED8-9B87-42E9-BABB-350A48CBCB15"}
 */
function onRenderImagen(event) {
	/** @type {JSRecord<db:/fwk_navigation_infocom/rel_grupotree_usuario>}*/
	var $rcd = event.getRecord()
	if ($rcd)
		event.getRenderable().imageURL = $rcd.rel_grupotree_usuario_to_grupostree.url_boton
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"F1359ADE-CF44-4F2B-9874-E965527E3F56"}
 */
function elegir(event) {
	globals.gGrupoActual = nrogrupo
	forms.menu_pantallas.controller.loadRecords(ggrupoactual_to_rel_pantallas_usuarios)
	var $elem
	if (application.getApplicationType() == APPLICATION_TYPES.WEB_CLIENT)
	{
		$elem = forms.main.elements.tab_menu_opciones
	}
	else
	{
		$elem = elements.lbl_mostrar
	}
	plugins.window.showFormPopup($elem, forms.menu_pantallas, foundset.getSelectedRecord(), "order_id",270,34*ggrupoactual_to_rel_pantallas_usuarios.getSize()+32);
}
